package or.exa.cangguan.mapper;

import or.exa.cangguan.common.Page;
import or.exa.cangguan.entity.dto.EmployeeDto;
import or.exa.cangguan.entity.po.Employee;
import or.exa.cangguan.entity.vo.EmployeeVo;
import or.exa.cangguan.entity.vo.StoreVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface EmployeeMapper {
    int deleteByPrimaryKey(String id);

//    int insert(Employee record);

    int insert(Employee employee);

    Integer selectByName(String employeeName);

    List<String> selectName();

    int updateByPrimaryKeySelective(Employee employee);

    int updateByPrimaryKey(Employee record);

    List<EmployeeDto> selectEmployee(@Param("employeeVo") EmployeeVo employeeVo, @Param("page") Page page);

    // 添加 @Param 注解
    int selectEmployeeCount(@Param("employeeVo") EmployeeVo employeeVo);
}